package be.jprojects.subscription.gui.crudstatus;

import be.jprojects.subscription.gui.detailpanels.DetailPanel;

public class DeletionStatus extends CRUDStatus {

	public DeletionStatus(DetailPanel detailPanel) {
		super(detailPanel);
	}

	@Override
	public void saveActionPerformed() {
		detailPanel.saveDeletionActionPerformed();
		detailPanel.setCurrentStatus(detailPanel.getReadStatus());
	}

	@Override
	public void cancelActionPerformed() {
		detailPanel.cancelDeletionActionPerformed();
		detailPanel.setCurrentStatus(detailPanel.getReadStatus());
	}


}
